package datastructure
{
	public class Vertex
	{
		public var name:String;
		public var index:int;
		public var closestVer:Vertex = null;	//默认为空值
		public var closestDist:int = int.MAX_VALUE;	//	默认为正整数最大值
		
		public var isStart:Boolean = false;
		
		
		/* 用于初始化顶点的位置*/
		public var xCoordinate:int;
		public var yCoordinate:int;
		
		public function Vertex(index:int,name:String)
		{
			this.index = index;
			this.name = name;
		}
		
		/**
		 * 设置顶点的坐标 
		 * @param x
		 * @param y
		 * 
		 */		
		public function setPosition(x:int,y:int):void
		{
			this.xCoordinate = x;
			this.yCoordinate = y;
		}
		
		
	}
}